import {service} from '@/utils/http'

/**
 * 查询所有的博客Tag
 * @returns {*}
 */
export const findAllBlogTags = () => {
    const url = `blogCenter/blogTag/findAllBlogTag`
    return service.get(url)
}

/* 通过博客标签名查询对应的标签 */
export const findBlogTagByName = (tagName) => {
    const url = `blogCenter/blogTag/findBlogTagNyName?tagName=` + tagName
    return service.get(url, tagName)
}

/* 通过标签id查询指定的博客 */
export const findPVTopNBlogByTagId = (number, tagId) => {
    const url = `blogCenter/blogTag/findPVTopNBlogByTagId?number=` + number + `&tagId=` + tagId
    return service.get(url, number, tagId)
}